export const QuestionConfigBean = {
  id: '',
  year: '',
  bt: '',
  publish: 0,
  starDate: '',
  endDate: '',
  entryDate: [],
  mark: '',
  questions: []
}

export const QuestionConfigSubBean = {
  id: '',
  type: '',
  typeText: '',
  code: '',
  codeText: '',
  limitChecked: '',
  fid: '',
  validateRule: '',
  validateRuleTip: '',
  replyDefault: '',
  rowStatus: '',
  showOrder: ''
}

export const FORM_RULES = {
  bt: [{ required: true, message: '请输入标题', trigger: 'change' }],
  year: [{ required: true, message: '请选择调查年份', trigger: 'change' }],
  num: [{ pattern: /^[0-9]+[0-9]*$/, message: '请输入正整数', trigger: 'change' }],
  entryDate: [{ required: true, message: '请选择调查期限', trigger: 'change' }],
  showOrder: [
    { required: true, message: '请维护排序', trigger: 'change' },
    { pattern: /^[1-9]+[0-9]*$/, message: '请输入正整数', trigger: 'change' }
  ]
}
